import { Utils } from './../Global/Utils';
import { UIMgr, ui_level_type } from './../Managers/UI/UIMgr';
//------------------------------------------------------------
// * Author         : Ekko
// * Description    : 游戏入口
//------------------------------------------------------------

const {ccclass, property} = cc._decorator;

@ccclass
export default class AppStart extends cc.Component {

    mainViewPath: string = "Prefabs/MainViewUI";

    onLoad () {
        UIMgr.getInst().create();
    }

    start () {
        var root = UIMgr.getInst().getRoot();
        Utils.loadRes(this.mainViewPath, root);
    }

    // update (dt) {}
}
